<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/collection_item"
    android:padding="@dimen/default_margins">

    <TextView
        android:id="@+id/rangeTextView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="1892-1923"
        android:textColor="?colorPrimary"
        android:textSize="19sp"
        app:layout_constraintBottom_toTopOf="@id/yearRecyclerView"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <ImageButton
        android:id="@+id/prevPageButton"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@null"
        android:contentDescription="@string/year_picker_previous_page"
        android:src="@drawable/ic_prev"
        app:layout_constraintBottom_toBottomOf="@id/nextPageButton"
        app:layout_constraintEnd_toStartOf="@+id/nextPageButton"
        app:layout_constraintTop_toTopOf="@id/nextPageButton" />

    <ImageButton
        android:id="@+id/nextPageButton"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@null"
        android:contentDescription="@string/year_picker_next_page"
        android:src="@drawable/ic_next"
        app:layout_constraintBottom_toTopOf="@id/yearRecyclerView"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/yearRecyclerView"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:orientation="vertical"
        app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/nextPageButton"
        app:spanCount="3" />
</androidx.constraintlayout.widget.ConstraintLayout>